package com.jdy.hotel.ui.login;

import com.jdy.hotel.net.DataSource;
import com.jdy.hotel.net.NetWork;
import com.jdy.hotel.net.callback.BaseCallback;
import com.jdy.hotel.support.BaseViewModel;


class LoginViewModel extends BaseViewModel {

    void login() {
        if (checked()) {
            String url = DataSource.SERVER_IP + "/auth/token";
            NetWork.doPost(url, get(), new BaseCallback(this));
        }
    }
}
